<?php
    include_once("../inc/login_controll.inc.php");
	include_once("../class/config.class.php"); 
	$config = config::getConfig();
	include_once($config->getValue("home_path")."/inc/defines.inc.php");

	include_once(HOME_PATH."/class/form.class.php");
	include_once(HOME_PATH."/class/database.class.php");
	include_once(HOME_PATH."/class/user.class.php");
	
	$oForm = new form($config);
	$oDB = new database($config);
	$oForm->setDB($oDB);
	
	$oUser = new user($config);	
	$oUser->setDB($oDB);

	// Umfragen des Lehrers auslesen
	$aForms = $oForm->getFormsByTeacher($_SESSION['user_id']);
	
	include(HOME_PATH."/templates/header.tpl.php");
	include(HOME_PATH."/templates/admin/listing.tpl.php");
	include(HOME_PATH."/templates/footer.tpl.php");
